$(document).ready( function() {
	$("#add_but").click( function() {
		$.post("addcolumn",{catname:$("#catname").val(),letter:$("#letter").val(),modelid:$("#modelid").val(),categoryid:$("#categoryid").val(),ismenu:$("input[type=radio][checked]").val()},function(msg){
			alert(msg);
		});
	});
	
	$("#edit_but").click( function() {
		$.post("http://localhostqk.com/web/model/editcolumn",{id:$("#id").val(),catname:$("#catname").val(),letter:$("#letter").val(),modelid:$("#modelid").val(),categoryid:$("#categoryid").val(),oldparentid:$("#oldparentid").val(),ismenu:$("input[type=radio][checked]").val()},function(msg){
			alert(msg);
		});
	});
})